Returns the ASCII code of a character.
Asc ( "char" )
Parameters
char | The character to get the code for. If a string is used, the code for the first character is given. |
Return Value
Success: | Returns the ASCII code of the specified char. |
Failure: | Returns -1 if a number is passed instead of a char. |
Remarks
See the Appendix for a complete ASCII table.
Related
Chr
Example
$code = Asc("A")
MsgBox(0, "ASCII code for A:", $code)